/* 
 * File:   Terrain.h
 * Author: aljosa
 *
 * Created on June 22, 2010, 6:17 PM
 */

#ifndef __TERRAIN_H
#define	__TERRAIN_H

using namespace std;

#include <string>

#define MAP_X 32
#define MAP_Z 32
#define MAP_SCALE 20.0f

namespace xEngine
{
  namespace Resources
  {
      class Terrain {
      public:
          Terrain();
          virtual ~Terrain();

          virtual bool init();
          virtual bool load(string filename); // Load image file

          virtual void shutDown();

          //
         /* int MAPX_X;
          int MAP_Z;
          int MAP_SCALE;*/

          float vertices[MAP_X][MAP_Z][3];

          // Arrays. TODO: dynamic
       /*   unsigned indexArray [ MAP_X * MAP_Z * 6];
          float terrain [MAP_X * MAP_X][3];
          float colorArray [MAP_X * MAP_X][3];
          float texcoordArray[MAP_X * MAP_X][3];*/
      private:

      };

  }
}

#endif	/* _TERRAIN_H */

